# -*- coding: utf-8 -*-
from django.core import management
from django.core.management.base import BaseCommand, CommandError
from google.appengine.tools import dev_appserver
from socialbar import bootstrapControl
import atexit

class Command(BaseCommand):
  help = 'initiliaze the database for project'
  def handle(self, *args, **options):
    atexit.register(dev_appserver.TearDownStubs)
    
    management.call_command('flush', verbosity=0, interactive=False)   
    
    bootstrapControl.boot()


